package com.ruoyi.pcj.dto.friend;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mashuai.utils.toolkit.core.msHandlebean.annotation.MsJoinTable;
import com.ruoyi.pcj.constant.TbConstant;
import com.ruoyi.pcj.domain.PcjLtFriendRecords;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 好友列表
 *
 * @ClassName: FriendListDto
 * @Author : mashuai
 * @Description: TODO
 */
@Data
public class FriendSessionDto implements Serializable {
    //自己id
    private Long userId;
    //好友的id
    private Long friendId;
    private String friendName;
    private String friendAlias;
    //是否特别关心0-否，1-是
    private String particularConcern;
    //聊天会话排序
    private String sessionSeqNo;
    //最新一条聊天记录id
    private String newMsgId;
    /**
     * 最新一条发送/接受消息的时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date newMsgTime;
    //未读消息数量
    private Integer unreadNum;
    //展示最新一条消息
    private FriendNewMsgDto newMsg;


}
